<template>
  <div class="search-bar">
    <div class="batch-title">
      <div>{{ batch_title }}</div>
    </div>
    <div class="batch-status">
      <div>考试批次</div>
      <div class="arrow"> 
        <img src="@/assets/icons/icon-router-arrow_slices/icon-router-arrow@2x.png" alt="">
      </div>
      <div>{{status}}</div>
    </div>
    <div class="search-ipt">
      <a-input-search
        v-model="title"
        placeholder="输入考试名称"
        enter-button="查询"
        size="large"
        allowClear
        @search="getWorkExamBatchList"
      >
        <template #prefix>
          <span class="iconfont icon-sousuo"></span>
        </template>
      </a-input-search>
    </div>
  </div>
</template>

<script>
export default {
  props: ['batch_title','status'],
  data() {
    return {
      title: '',
    };
  },
  methods: {
    getWorkExamBatchList() {
      this.$emit('getWorkExamBatchList', this.title);
    },
  },
};
</script>

<style lang="scss" scoped>
.search-bar {
  display: flex;
  .batch-title {
    font-size: 28px;
    font-family: SourceHanSansCN-Normal, SourceHanSansCN;
    font-weight: 400;
    color: #333333;
    position: relative;
    padding-left: 10px;
    padding-right: 20px;
    &::before {
      position: absolute;
      content: '';
      left: 0;
      top: 9px;
      width: 3px;
      height: 25px;
      background: #cccccc;
    }
  }
  .batch-status {
    display: flex;
    font-size: 20px;
    font-family: SourceHanSansCN-Normal, SourceHanSansCN;
    font-weight: 400;
    color: #333333;
    flex: 1;
    align-items: center;
    .arrow{
      color: #666;
      margin: 0 10px;
      img{
        width: 7px ;
        height: 12px;
      }
    }
  }
}

::v-deep .ant-btn{
  margin: 0 !important;
}
</style>